/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Calendar;

/**
 * <p>Project: jse2204 - If01
 * <p>Powered by webrx On 2022-09-02 11:48:18
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class If01 {
    public static void main(String[] args) {
        System.out.printf("%tA%n", System.currentTimeMillis());

        Calendar c = Calendar.getInstance();
        c.add(Calendar.DATE, 12);
        int k = c.get(Calendar.DAY_OF_WEEK) - 1;

        if (k == 1)
            System.out.println("星期一");
        if (k == 2);


            System.out.println("星期二");


        if (k == 3) System.out.println("星期三");
        if (k == 4) System.out.println("星期四");
        if (k == 5) System.out.println("星期五");
        if (k == 6) System.out.println("星期六");
        if (k == 0) System.out.println("星期日");
    }
}
